-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh metadata after creating or deleting a topic #349
Conversation
9313473
to
ce30307
Compare
@jbruggem One question, otherwise just need to rebase and we're good to go. |
35caed0
to
d58620a
Compare
d58620a
to
35ce8f2
Compare
35ce8f2
to
df72ac5
Compare
Done, thanks ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks!
@jbruggem we'd love to have you over on the elixir slack channel #kafkaex - any chance you could join? https://elixir-slackin.herokuapp.com/ |
With pleasure ! Thanks for offering. |
This PR corrects what I believe is a bug in the implementation of
create_topics
anddelete_topics
, which leads to stale metadata in the GenServer's state.Indeed, once the creation/deletion of a topic has happened, the metadata in the state of the worker is stale and does not represent the real state of the server.
Hence we should update those metadata when we do that creation or deletion.
I also took the opportunity to rename the callbacks I had added because they were not consistent with the other ones.
Edit: added some fixes to specs (small inconsistencies that were making our dialyzer fail downstream).